frequency of each character in string